package com.eggsl;

import com.eggsl.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 */
public class App {
    public static void main(String[] args) {
        //测试常规服务
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("consumer.xml");
        context.start();
        System.err.println("consumer start");
        UserService userService = context.getBean(UserService.class);
        System.err.println("consumer");
        System.out.println(userService.getUsers());
        System.out.println(userService.sayHello("jack"));
    }
}
